home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
music
/
ctv_mod.zip
/
LARGE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-10-01
|
2KB
|
59 lines
#include <dos.h>
typedef unchar unsigned char ;
typedef unint unsigned int ;
unchar far *buffer ;
char c;
extern unchar intr_num ;
extern unint voice_status ;
extern unint io_addx ;
main(unint argc,unchar *argv[])
{
unint loop = TRUE ;
printf("Card found: %d\n",ctv_card_here());
if (buffer = (unchar far*)0x6000f000L)
{
printf("Driver init: %d\n",ctv_detect()) ;
printf("Interrupt at: %d\n",intr_num) ;
while (loop)
{
while(kbhit())
{
c = getch();
switch(c)
{
case ' ':
printf("Halt and exit : %d\n",ctv_halt());
loop = FALSE ;
break;
case 's':
case 'S':
printf("Start : %d\n",ctv_output(buffer,0xffff,8000));
break;
case 'p':
case 'P':
printf("Pause : %d\n",ctv_pause());
break;
case 'c':
case 'C':
printf("Resume: %d\n",ctv_continue());
break;
case 'h':
case 'H':
printf("Halt : %d\n",ctv_halt());
break;
default:
break;
}
}
}
}
}